
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 UmsUser 分页列表
*/
export function getUmsUserPagination(data: any) {
  return axios.get(`${context}/umsUser/pagination`, { params: data });
}


/**
 * 获取 UmsUser 所有数据
*/
export function getUmsUserAllList(data: any) {
  return axios.get(`${context}/umsUser/all`, { params: data });
}


/**
 * 获取 UmsUser 详情
*/
export function getUmsUserDetailById(id: any) {
  return axios.get(`${context}/umsUser/${id}`, { params:{id} });
}


/**
 * 新增 UmsUser
*/
export function addUmsUser(data: any) {
  return axios.post(`${context}/umsUser`, data);
}

/**
 * 修改 UmsUser
*/
export function updateUmsUser(data: any) {
  return axios.put(`${context}/umsUser`, data);
}

/**
 * 删除 UmsUser
*/
export function batchRemoveUmsUser(data: any) {
  return axios.post(`${context}/umsUser/batchRemove`, data);
}

    